import instance from '@/utils/request'

export function getDashboardData() {
  return instance.post('/admin/dashboard/statistics')
}

//获取热点文章日期数据
export function getHotDatePublishArticle(data){
  return instance.post('/admin/dashboard/publishArticle/statistics', data)
}

//获取最近一周文章pv
export function getArticlePVStatisticsInfo(data){
  return instance.post('/admin/dashboard/pv/statistics', data)
}